﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>甜蜜生活记事簿 · 控制面板</title>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap">
  <link rel="stylesheet" href="css/styles.css">
</head>
<body class="theme-pink">
<div id="app" class="app-root" hidden>
  <aside class="sidebar">
    <div class="sidebar-header">
      <div class="avatar">
        <img id="sidebarAvatar" alt="头像">
      </div>
      <div class="sidebar-info">
        <h2 id="sidebarName">甜蜜用户</h2>
        <p id="sidebarTag">记录你们的生活点滴</p>
      </div>
    </div>
    <nav class="menu" id="menuList">
      <!-- 左侧菜单由脚本填充 -->
    </nav>
    <div class="sidebar-footer">
      <button class="btn-primary block" id="openProfileBtn">编辑个人档案</button>
      <button class="btn-link block" id="logoutBtn">退出登录</button>
    </div>
  </aside>

  <main class="main">
    <header class="main-header">
      <div>
        <h1 id="viewTitle">甜蜜总览</h1>
        <p class="subtitle" id="viewSubtitle">今天也要认真记录小确幸</p>
      </div>
      <div class="header-actions">
        <div class="theme-toggle">
          <span>主题</span>
          <div class="theme-buttons" id="themeSwitch">
            <button data-theme="pink" class="theme-dot pink active"></button>
            <button data-theme="lavender" class="theme-dot lavender"></button>
            <button data-theme="midnight" class="theme-dot midnight"></button>
          </div>
        </div>
        <div class="header-date" id="todayDisplay"></div>
      </div>
    </header>

    <section id="contentArea" class="content">
      <!-- 主要内容由脚本渲染 -->
    </section>
  </main>
</div>

<div id="loadingOverlay" class="loading-overlay">
  <div class="loading-spinner"></div>
  <p>正在加载甜蜜空间...</p>
</div>

<script type="module" src="js/app.js"></script>
</body>
</html>
